<extend file="resource/view/site"/>
<block name="content">
    <ul class="nav nav-tabs">
        <li><a href="{{site_url('site/MemberLists')}}">会员列表</a></li>
        <li class="active"><a href="javascript:;">添加会员</a></li>
    </ul>
    <form action="" method="post" role="form" class="form-horizontal">
        <div class="panel panel-default">
            <div class="panel-heading">添加会员</div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-sm-2 control-label">会员姓名</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="realname" required="required">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">手机号</label>
                    <div class="col-sm-8">
                        <input type="number" class="form-control" name="mobile" required="required">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">登陆密码</label>
                    <div class="col-sm-8">
                        <input type="password" class="form-control" name="password" required="required">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">确认密码</label>
                    <div class="col-sm-8">
                        <input type="password" class="form-control" name="password2" required="required">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">邮箱</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="email" required="required">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">{{v( 'site.setting.creditnames.credit1.title' )}}</label>
                    <div class="col-sm-8">
                        <input type="number" class="form-control" name="credit1" value="0" required="required">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">{{v( 'site.setting.creditnames.credit2.title' )}}</label>
                    <div class="col-sm-8">
                        <input type="number" class="form-control" name="credit2" value="0" required="required">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">会员组</label>
                    <div class="col-sm-8">
                        <select name="group_id" class="form-control">
                            <foreach from="$group" value="$g">
                                <option value="{{$g['id']}}">{{$g['title']}}</option>
                            </foreach>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <button type="submit" class="btn btn-primary">保存</button>
    </form>
</block>